import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Home.vue'),
  },
  {
    path: '/HomeNumber',
    name: 'HomeNumber',
    component: () => import(/* webpackChunkName: "Home" */ '../views/HomeNumber.vue'),
  },
  {
    path: '/About',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About/About.vue'),
    meta:{
      keepAlive:true
    }
  },
  {
    path: '/AboutNumber',
    name: 'AboutNumber',
    component: () => import(/* webpackChunkName: "Home" */ '../views/About/AboutNumber.vue'),
  },
  // 环卫
  {
    path: '/Assanation',
    name: 'Assanation',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Assanation/Assanation.vue'),
  },
  {
    path: '/AssanationNumber',
    name: 'AssanationNumber',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Assanation/AssanationNumber.vue'),
  },
  // 污水
  {
    path: '/Sewage',
    name: 'Sewage',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Sewage/Sewage.vue'),
  },
  {
    path: '/SewageNumber',
    name: 'SewageNumber',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Sewage/SewageNumber.vue'),
  },
  // 防汛
  {
    path: '/FloodControl',
    name: 'FloodControl',
    component: () => import(/* webpackChunkName: "Home" */ '../views/FloodControl/FloodControl.vue'),
  },
  {
    path: '/FloodControlNumber',
    name: 'FloodControlNumber',
    component: () => import(/* webpackChunkName: "Home" */ '../views/FloodControl/FloodControlNumber.vue'),
  },
  {
    path: '/anjian_table',
    component: () => import('../views/anjian_table.vue'),
  },
  {
    path: '/anjian_chart',
    component: () => import('../views/anjian_chart.vue'),
  },
  {
    path: '/huanbao_table',
    component: () => import('../views/huanbao_table.vue'),
  },
  {
    path: '/huanbao_chart',
    component: () => import('../views/huanbao_chart.vue'),
  },
  {
    path: '/chengguan_table',
    component: () => import('../views/chengguan_table.vue'),
  },
  {
    path: '/chengguan_chart',
    component: () => import('../views/chengguan_chart.vue'),
  },
  {
    path: '/xiaofang_table',
    component: () => import('../views/xiaofang_table.vue'),
  },
  {
    path: '/xiaofang_chart',
    component: () => import('../views/xiaofang_chart.vue'),
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
